<template>
	<!-- <statusBarVue title="地址管理" :isShowBar="true" :isShowLeft="true" /> -->
	<view class="mall-order-detail-page">
		<view class="mall-order-detail">
			<view class="status">
				<uni-icons type="wallet" size="30" color="#fff"></uni-icons>
				<text class="status-text">待支付</text>
			</view>
			<view class="goods group">
				<img class="goods-img" src="https://shuidianbang.oss-cn-chengdu.aliyuncs.com/ceshi/5c09f5c9-6fa8-4b4c-a975-49f8019c0d7e.jpg" alt="" />
				<view class="goods-text">
					<view class="goods-name">
						优渥PLC网关工业数据采集远程上下载程序边缘计算OPC组态DTU模块
					</view>
					<view class="nums">
						<view class="goods-nums">
							x1
						</view>
						<view class="goods-price">
							实付款 ￥0.01+200积分
						</view>
					</view>
				</view>
			</view>
			<view class="order group">
				<view class="t">
					订单信息
				</view>
				<view class="b">
					<view class="list">
						<view class="list-item">
							<text class="label-l">订单号</text>
							<text class="label-r">348029384-2394823</text>
						</view>
						<view class="list-item">
							<text class="label-l">下单时间</text>
							<text class="label-r">2022-02-12 12:345:32</text>
						</view>
					</view>

					<view class="list">
						<view class="list-item">
							<text class="label-l">购买份数</text>
							<text class="label-r">1份</text>
						</view>
						<view class="list-item">
							<text class="label-l">订单金额</text>
							<text class="label-r">0.01+200积分</text>
						</view>
						<view class="list-item">
							<text class="label-l">实付金额</text>
							<text class="label-r">0.01+200积分</text>
						</view>
						<view class="list-item">
							<text class="label-l">付款方式</text>
							<text class="label-r">支付宝</text>
						</view>
					</view>


				</view>
			</view>
			<view class="help group">
				<view class="t">
					遇到问题？
				</view>
				<view class="b phone">
					<uni-icons type="phone" size="20" color="#FA6400"></uni-icons>
					请拨打电话
					<text @click="handlePhoneCall('13778809281')">13778809281</text>

				</view>
			</view>
		</view>

		<view class="f">
			<view class="btns">
				<button class="btn">取消订单</button>
				<button class="btn isChange">立即支付</button>
			</view>
		</view>
	</view>
</template>

<script>
	import statusBarVue from '@/components/statusBar.vue';
	import {
		publics
	} from '@/mixins/publics.js';

	export default {
		mixins: [publics],
		components: {
			statusBarVue
		},
		data() {
			return {
				statusList: {
					0: '待支付',
					1: '订单超时',
					2: '已取消',
					3: '交易完成',
					4: '待发货',
					5: '已发货',
				}
			}
		}
	}
</script>

<style lang="scss">
	.mall-order-detail-page {
		position: relative;
		font-family: "Arial";

		.group {
			margin: 0 25rpx;
			margin-top: 24rpx;
			background-color: #fff;
			box-sizing: border-box;
			border-radius: 12rpx;
			padding: 24rpx;

			.t {
				height: 42rpx;
				font-family: PingFangSC-Semibold;
				font-weight: 600;
				font-size: 30rpx;
				color: #070707;
				margin-bottom: 28rpx;
			}

			.b {
				.list {
					border-bottom: 1px solid rgb(151 151 151 / 40%);

					&:last-child {
						border: none;
					}

					&-item {
						display: flex;
						justify-content: space-between;
						align-items: center;
						color: #4E4E4E;
						font-size: 30rpx;
						margin: 24rpx 0;
					}
				}
			}
		}

		.status {
			width: 100%;
			height: 131rpx;
			line-height: 131rpx;
			box-sizing: border-box;
			padding: 0 50rpx;
			background-image: linear-gradient(-85deg, #FF5151 0%, #ff8123e0 100%);
			font-family: PingFangSC-Semibold;
			font-weight: 600;
			font-size: 34rpx;
			color: #FFFFFF;

			&-text {
				margin-left: 15rpx;
			}
		}

		.goods {
			display: flex;
			justify-content: space-between;

			.goods-img {
				width: 143rpx;
				height: 143rpx;
				border-radius: 8rpx;
				margin-right: 15rpx;
			}

			.goods-text {
				.goods-name {
					font-family: PingFangSC-Regular;
					font-weight: 400;
					font-size: 30rpx;
					color: #070707;
					margin-bottom: 14rpx;
				}

				.nums {
					font-family: PingFangSC-Semibold;
					font-weight: 600;
					font-size: 30rpx;
					color: #070707;

					.goods-price {
						text-align: right;
						font-family: PingFangSC-Semibold;
						font-weight: 600;
						font-size: 30rpx;
						color: #FA6400;
					}
				}
			}
		}

		.help {
			.phone {
				font-family: PingFangSC-Regular;
				font-weight: 400;
				font-size: 30rpx;
				color: #0F0F0F;
				letter-spacing: 0;
			}
		}

		.mall-order-detail {
			width: 100%;
			height: calc(100vh - 44px - 24rpx - 21rpx - (119rpx + env(safe-area-inset-bottom)));
		}

		.f {
			overflow: hidden;
			background-color: #fff;
			box-sizing: border-box;
			position: fixed;
			padding: 21rpx 32rpx calc(70rpx + env(safe-area-inset-bottom));
			left: 0;
			right: 0;
			bottom: 0;

			.isChange {
				color: #FA6400 !important;
				border-color: #FA6400 !important;
			}

			.btns {
				display: flex;
				justify-content: space-between;
				align-items: center;
				float: right;

				.btn {
					width: 168rpx;
					height: 68rpx;
					line-height: 68rpx;
					background: #FFFFFF;
					border: 1rpx solid #989898;
					border-radius: 36.5rpx;
					font-family: PingFangSC-Regular;
					font-weight: 400;
					font-size: 30rpx;
					color: #25232B;
					text-align: center;
					padding: 0;
					margin: 0 5rpx;

					&::after {
						border: none;
					}
				}
			}
		}
	}
</style>